package com.ximu.redeemcode.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author ximu
 * @since 2023-03-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="RedeemCode对象", description="")
public class RedeemCode implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "兑换码id")
      @TableId(value = "redeem_code_id", type = IdType.AUTO)
    private Integer redeemCodeId;

    @ApiModelProperty(value = "兑换码详情")
    private String redeemCodeInfo;

    @ApiModelProperty(value = "是否使用")
    private Integer state;

    @ApiModelProperty(value = "兑换码归属")
    private Integer userId;

    @ApiModelProperty(value = "失效时间")
    private Date failureTime;


}
